package com.weixin.text;

import java.sql.SQLException;

import com.weixin.dao.IUserDao;
import com.weixin.dao.impl.UserDaoImpl;
import com.weixin.service.IUserService;
import com.weixin.service.impl.UserServiceImpl;

public class UserText {
	public static void main(String[] args) throws SQLException {
		IUserDao dao=new UserDaoImpl();
		IUserService service=new UserServiceImpl();
		System.out.println(dao.selectCount("student"));
		System.out.println(dao.selectByRolePage("student", 5, 2));
		System.out.println(service.getCount("student"));
		System.out.println(service.listByRolePage("student", 5, 2));
		System.out.println(service.findAllByRole("student"));		
	}
}
